package com.hexinfo.dmpro.xxljob.controller;//package com.xxl.job.executor.mvc.controller;

import com.hexinfo.dmpro.common.annotation.AnonymousAccess;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
@RequestMapping("/xxljob")
public class IndexController {

    @GetMapping("/domes")
    @ResponseBody
    @AnonymousAccess
    String index() {
        System.out.println("xxl job executor running.");
        return "xxl job executor running.";
    }

}